
// netDlg.h : header file
//
#include "ControlButton.h"
#define WM_SHOWTASK (WM_USER+130)
#define WM_POST      (WM_USER+160)
#pragma once


// CnetDlg dialog
class CnetDlg : public CDialogEx
{
// Construction
public:
	CnetDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_NET_DIALOG };
	CControlButton m_demoBtn;
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support

	NOTIFYICONDATA m_nid;
// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	//afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnButton1();
	DECLARE_MESSAGE_MAP()
	CWinThread* pThread;
	
public:
	afx_msg void OnBnClickedOk();
	//CString m;
	CListCtrl m_listDevice;
	//void UpdateDeviceList(void);
	//pcap_if_t *m_pAllDevives;
	//char strErr[PCAP_ERRBUF_SIZE];
//	LONGLONG liu;
//	 float m_liu;
	
	// void dispatcher_handler(u_char* state, const struct pcap_pkthdr * header, const u_char * pkt_data);
	 afx_msg void OnTimer(UINT_PTR nIDEvent);
	 afx_msg LRESULT OnShowTask(WPARAM wParam, LPARAM lParam);//zuixiaohua
	 afx_msg void OnSize(UINT nType, int cx, int cy);
	 afx_msg void OnDestroy();
	 CString show_total_day;
	 afx_msg void OnBnClickedCancel();
	 CDC m_backDC;
	CBitmap m_backBmp;
	bool st;
	CFont m_font;
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnBnClickedButton1();
	afx_msg void OnIddAboutbox();
	
	
	

	afx_msg void OnIddDialog1();
	afx_msg void OnIddNetDialog();
	afx_msg void OnBnClickedButton2();
	afx_msg BOOL OnQueryEndSession();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	CControlButton m_demoBtn1;
	afx_msg void OnIddDialog2();
//	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnContextMenu(CWnd* pWd, CPoint point);
	afx_msg void On32780();
	afx_msg void On32776();
	afx_msg void On32779();
	afx_msg void shuruzhanghaomima();
	afx_msg void lijichaxun();
	afx_msg LRESULT  OnPutOut(WPARAM wParam, LPARAM lParam);
	afx_msg LRESULT  OnPost(WPARAM wParam, LPARAM lParam);
	afx_msg void On32781();
};
 struct threadInfo
{
	UINT nMilliSecond;
	
};
UINT ThreadFunc(LPVOID lpParam); 